<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改ERP付款信息" bodyClass="white-bg" />
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-pay-edit"  class="form-horizontal">
    <input name="id" value="${bpmErpPersonPay.id}" type="hidden">
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "流水号" />：                
       </label>
        <div class="col-sm-8"><input name="serialNumber" value="${bpmErpPersonPay.serialNumber?default("")}" class="form-control" type="text" >                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请人id" />：                               <i class="fa fa-question-circle-o" title="申请人id"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyUserid" value="${bpmErpPersonPay.applyUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请人名称" />：                               <i class="fa fa-question-circle-o" title="申请人名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="applyUsername" value="${bpmErpPersonPay.applyUsername?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "受益人id" />：                               <i class="fa fa-question-circle-o" title="受益人id"></i>                                
       </label>
        <div class="col-sm-8"><input name="beneficiaryUserid" value="${bpmErpPersonPay.beneficiaryUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "受益人名称" />：                               <i class="fa fa-question-circle-o" title="受益人名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="beneficiaryUsername" value="${bpmErpPersonPay.beneficiaryUsername?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "选择账户" />：                               <i class="fa fa-question-circle-o" title="选择账户 Payable Bank，Reimbursement Bank，Financial Bank"></i>                                
       </label>
        <div class="col-sm-8"><input name="selectAccount" value="${bpmErpPersonPay.selectAccount?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "账户余额" />：                               <i class="fa fa-question-circle-o" title="账户余额"></i>                                
       </label>
        <div class="col-sm-8"><input name="accountBalance" value="${bpmErpPersonPay.accountBalance?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "金额" />：                               <i class="fa fa-question-circle-o" title="金额"></i>                                
       </label>
        <div class="col-sm-8"><input name="payMoney" value="${bpmErpPersonPay.payMoney?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="payMemo" class="form-control" required>${bpmErpPersonPay.payMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "确认打款"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="payConfirmpay" dictType="sys_crm_isOrNo" value="${bpmErpPersonPay.payConfirmpay?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "打款日期"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="payPaymentdate"  data-type="date"   value="${(bpmErpPersonPay.payPaymentdate?string('yyyy-MM-dd'))!}" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "偏好付款方式"/>：</label>
        <div class="col-sm-8">          
             <@form.select name="payPreferencePaymethod" dictType="sys_crm_paymethod" value="${bpmErpPersonPay.payPreferencePaymethod?default('')}"   required="true"  multiple="" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "付款方式备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="payMethodMemo" class="form-control" required>${bpmErpPersonPay.payMethodMemo?default("")}</textarea>
        </div>
    </div>
               
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "附件" />：                               <i class="fa fa-question-circle-o" title="附件  选项关联-确认打款=Confirm"></i>                                
       </label>
        <div class="col-sm-8"><input name="payReceiptNumber" value="${bpmErpPersonPay.payReceiptNumber?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "证明" />：                               <i class="fa fa-question-circle-o" title="证明  选项关联-确认打款=Confirm"></i>                                
       </label>
        <div class="col-sm-8"><input name="payProof" value="${bpmErpPersonPay.payProof?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "接收人名称" />：                               <i class="fa fa-question-circle-o" title="接收人名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="payRecipientName" value="${bpmErpPersonPay.payRecipientName?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "接收人地址" />：                               <i class="fa fa-question-circle-o" title="接收人地址"></i>                                
       </label>
        <div class="col-sm-8"><input name="payRecipientAddress" value="${bpmErpPersonPay.payRecipientAddress?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "接收人手机" />：                               <i class="fa fa-question-circle-o" title="账户号码"></i>                                
       </label>
        <div class="col-sm-8"><input name="payRecipientPhone" value="${bpmErpPersonPay.payRecipientPhone?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "账户号码" />：                               <i class="fa fa-question-circle-o" title="账户号码"></i>                                
       </label>
        <div class="col-sm-8"><input name="payAccountNumber" value="${bpmErpPersonPay.payAccountNumber?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "邮政编号" />：                               <i class="fa fa-question-circle-o" title="邮政编号"></i>                                
       </label>
        <div class="col-sm-8"><input name="payRoutingNumber" value="${bpmErpPersonPay.payRoutingNumber?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "开户行" />：                               <i class="fa fa-question-circle-o" title="开户行"></i>                                
       </label>
        <div class="col-sm-8"><input name="payBankAddress" value="${bpmErpPersonPay.payBankAddress?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "汇款方式   "/>：</label>
        <div class="col-sm-8">
           <@form.radio name="payRmbRemittanceMethod" dictType="sys_crm_isOrNo" value="${bpmErpPersonPay.payRmbRemittanceMethod?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "银行名称" />：                               <i class="fa fa-question-circle-o" title="银行名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="payBankName" value="${bpmErpPersonPay.payBankName?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "银行账号" />：                               <i class="fa fa-question-circle-o" title="银行账号"></i>                                
       </label>
        <div class="col-sm-8"><input name="payBankAccount" value="${bpmErpPersonPay.payBankAccount?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "账户名称" />：                               <i class="fa fa-question-circle-o" title="账户名称"></i>                                
       </label>
        <div class="col-sm-8"><input name="payAccountName" value="${bpmErpPersonPay.payAccountName?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "付款结果"/>：</label>
        <div class="col-sm-8">
           <@form.radio name="cashierPaymentResult" dictType="sys_crm_isOrNo" value="${bpmErpPersonPay.cashierPaymentResult?default('')}" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "出纳日期"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="cashierDate"  data-type="date"   value="${(bpmErpPersonPay.cashierDate?string('yyyy-MM-dd'))!}" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "接收人编号" />：                               <i class="fa fa-question-circle-o" title="接收人编号"></i>                                
       </label>
        <div class="col-sm-8"><input name="cashierReceiptNumber" value="${bpmErpPersonPay.cashierReceiptNumber?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "出纳证明" />：                               <i class="fa fa-question-circle-o" title="出纳证明"></i>                                
       </label>
        <div class="col-sm-8"><input name="cashierProof" value="${bpmErpPersonPay.cashierProof?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "出纳备注" />：                               <i class="fa fa-question-circle-o" title="出纳备注"></i>                                
       </label>
        <div class="col-sm-8"><input name="cashierMemo" value="${bpmErpPersonPay.cashierMemo?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "出纳提交时间"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="cashierSubmitTime"  data-type="date"   value="${(bpmErpPersonPay.cashierSubmitTime?string('yyyy-MM-dd'))!}" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "创建人" />：                               <i class="fa fa-question-circle-o" title="创建人"></i>                                
       </label>
        <div class="col-sm-8"><input name="createUserid" value="${bpmErpPersonPay.createUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "修改人" />：                               <i class="fa fa-question-circle-o" title="修改人"></i>                                
       </label>
        <div class="col-sm-8"><input name="updateUserid" value="${bpmErpPersonPay.updateUserid?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "是否删除 " />：                               <i class="fa fa-question-circle-o" title="是否删除 （1删除，0不删除）默认为0"></i>                                
       </label>
        <div class="col-sm-8"><input name="deleteFlag" value="${bpmErpPersonPay.deleteFlag?default("")}" class="form-control" type="text"  required>                                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审批状态 默认为0 申请人提交为1发钱提交为2更新结果提交为3"/>：</label>
        <div class="col-sm-8">
            <div class="radio-box">
                <input type="radio" name="processStatus" value="" required/><span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
            </div>
        </div>
    </div>
 </@form.form>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "erp/pay";
    $("#form-pay-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-pay-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
